//
//  OADTableConfig.h
//  OASDK_Works
//
//  Created by ChenJie on 3/1/20.
//  Copyright © 2020 Mist. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OADSectionConfig.h"

@interface OADTableConfig : NSObject

@property (nonatomic, strong) NSMutableArray<OADSectionConfig *> *sections;


- (OADSectionConfig *)sectionConfigAtIndex:(NSInteger)sectionIndex;

/*
 * UITableViewDataSource
 */

- (NSInteger)numberOfSectionsInTableView;

- (NSInteger)numberOfRowsInSection:(NSInteger)section;

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;

/*
 * UITableViewDelegate
 */

- (CGFloat)heightForRowAtIndexPath:(NSIndexPath *)indexPath;

@end
